![]() | http://www.wavecom.com/forum Release version: 3.04 |
This sample depends on the following libraries :
This application provides a command to get or put a file on a FTP server. The IP connection settings are provided by the IPConnect library commands.
The +FTP command start the GET/PUT operation, and is available as soon as the IP connection is active.
AT+FTP (FTP get/put command)
| Command | Answers |
| AT+FTP? | +FTP:
<Mode>
,
<State>
OK |
| AT+FTP=? | +FTP:
(0-1)
,
(120)
,
(120)
OK |
| AT+FTP= <Mode> , <FileName> , <FilePath> | +CME ERROR: 3 or OK |
| Parameter | Values range | Description | Default value |
| Mode | 0-1 | 0 for FTP Get 1 for FTP Put | mandatory |
| State | 0-1 | 0 for Idle mode 1 for FTP processing mode | NA |
| FileName | 120 | file name on the FTP server | mandatory |
| FilePath | 120 | file relative path on the FTP server | mandatory |
With FTP get, if the process is successful, the file is displayed on the serial link.
With FTP put, if the connection is successful, test file datas are read from the serial link, until Ctrl-Z key is pressed.
The FTP process result is displayed in the following unsolicited result :
where Result is the TCPIP library result code. Please refer to the TCPIP documentation for more information.
Updated : Thu Apr 27 14:12:36 CEST 2006